/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Aptech.DALInterface;

import HibernateMappingPoJo.CatalogyDocument;
import HibernateMappingPoJo.Documnets;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;

/**
 *
 * @author nkhoan
 */
public interface DocumentInterface {

    List getAllDocument();

    Documnets getDocByID(String id);

    void deleteDoc(String id);

    void editDocuments(Documnets doc);

    Documnets getDocByName(String name);

    void addDoc(Documnets doc);

    void saveFile(String fileName, String filePath, byte[] fileData) throws FileNotFoundException, IOException;

    List getAllCatelogyDoc();
    
    boolean  deleteFile(String filePath,String fileName);
    
    void downloadFile(String fAddress, String
    		localFileName, String destinationDir);
}
